Include File Errors

Whenever I run a script that has an include file, the first time I always get errors related to the include file. Rerunning on the second time everything is fine.
Does anyone know how to solve this problem?

Thanks.
lsand - Fri Apr 01 16:07:07 EDT 2011

Re: Include File Errors
lsand - Fri Apr 01 17:35:02 EDT 2011

Experienced this with DOORS 9.2 and 9.3 and the folder structure looks like :

..\dxl\addins\user //DXL scripts resides here
..\dxl\addins\extensions //include file resides here

I include the files using the following statement:
#include "addins//extensions//A.inc"
#include "addins//extensions//B.inc"

Re: Include File Errors
Mathias Mamsch - Sat Apr 02 02:24:32 EDT 2011

I had that error once, when I has an include file, where i prefixed the variable names all with 2 underscores. Once I removed the unserscores the error went away, so what you can try is to check the script for unusual variable names. Maybe that helps, regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Include File Errors
adevicq - Mon Apr 04 03:13:08 EDT 2011

Hi,

I sometimes have the same error. In my case, the files are located on a server. It seems that sometimes the first access fails...

Alain

Re: Include File Errors
llandale - Mon Apr 04 10:38:15 EDT 2011

lsand - Fri Apr 01 17:35:02 EDT 2011
Experienced this with DOORS 9.2 and 9.3 and the folder structure looks like :

..\dxl\addins\user //DXL scripts resides here
..\dxl\addins\extensions //include file resides here

I include the files using the following statement:
#include "addins//extensions//A.inc"
#include "addins//extensions//B.inc"

Never happened to me. If it did I'd suspect this had something to do with AutoDeclare on or perhaps evalTop_. Then I'd suspect whatever Mathias says. Then I'd suspect your "addins" variable structure is misleading (i.e. you are using some other "a.inc"), but I just now proved that the install "dxl\addins" has precedence. Then I'd suspect something is playing with DOORS home. Then I'd suspect I should go ahead and post at least the exact error, and possibly the code as well.

  • Louie

Re: Include File Errors
lsand - Mon Apr 04 13:29:50 EDT 2011

llandale - Mon Apr 04 10:38:15 EDT 2011
Never happened to me. If it did I'd suspect this had something to do with AutoDeclare on or perhaps evalTop_. Then I'd suspect whatever Mathias says. Then I'd suspect your "addins" variable structure is misleading (i.e. you are using some other "a.inc"), but I just now proved that the install "dxl\addins" has precedence. Then I'd suspect something is playing with DOORS home. Then I'd suspect I should go ahead and post at least the exact error, and possibly the code as well.

  • Louie

It was indeed the variable declaration in my include file that were prefixed with an underscore that was the problem.

thank you for your responses.

Re: Include File Errors
llandale - Mon Apr 04 15:29:17 EDT 2011

lsand - Mon Apr 04 13:29:50 EDT 2011
It was indeed the variable declaration in my include file that were prefixed with an underscore that was the problem.

thank you for your responses.

Wow, I wonder if Mathias has any idea what that's about. I see in the DXL manual however, chapter "Introduction" section "Language fundamentals" line "Identifiers", that:

An identifier is an arbitrarily long sequence of characters. The first character must be a letter; the rest of the identifier may contain letters, numerals or either of the following two symbols: _'.

  • Louie

Oh goodie, now we can start naming our variables with a single quote character.

Object CPS_Find'Group(Object oCPS)